public class Cat extends Animal{
    String name="Cat";
    @Override
    void getAnimalName(Animal a) {
        System.out.println(a.name);
    }

    void cry(){
        System.out.println(name+":miao miao");
    }
}
